package com.nineclock.attendance;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
//SpringBoot项目的引导类
@SpringBootApplication
    //注册服务到nacos
    @EnableDiscoveryClient
    //扫描feign接口
    @EnableFeignClients(basePackages = "com.nineclock.system.feign")
    //扫描mapper
    @MapperScan(basePackages = "com.nineclock.attendance.mapper")
    //扫描service组件
    @ServletComponentScan(basePackages ="com.nineclock.common.filter")
    public class NcAttendanceApplication {
        public static void main(String[] args) {
            SpringApplication.run(NcAttendanceApplication.class, args);
        }
    }